import http from '@/api'
import type {IBase} from "@/api/interface/base";

// 获取品牌列表
export const getBrandListApi = () => {
  return http.get<string[]>( `order_sku_batch/brand_list`, {}, { loading: false })
}

// 获取物流管理节点
export const getNodeAllListApi = (params: IBase.paramsNode) => {
  return http.get( `order/node_track`, params , { loading: false })
}

// KPI全部数据
export const getKpiReportApi = (params: any = {}) => {
  return http.post( `kpi_analysis/kpi_report`, params , { loading: false })
}
// kpi达标率
export const getKpiReportRateApi = (params: any = {}) => {
  return http.post( `kpi_analysis/kpi_rate_all`, params, { loading: false })
}

// kpi 达标率31天趋势
export const getKpiReportRateTrendApi = (params: any = {}) => {
  return http.post( `kpi_analysis/kpi_rate_trend`, params, { loading: false })
}
